package com.dayouzi.crawler_monitor.mapper;

import com.dayouzi.crawler_monitor.pojo.entity.UserAdmin;
import com.dayouzi.crawler_monitor.pojo.query.PersonConfigListQuery;
import com.dayouzi.crawler_monitor.pojo.query.PersonConfigQuery;
import com.dayouzi.crawler_monitor.pojo.query.PersonListQuery;
import com.dayouzi.crawler_monitor.pojo.query.UserAdminQuery;
import com.dayouzi.crawler_monitor.pojo.vo.HonorListVO;
import com.dayouzi.crawler_monitor.pojo.vo.PersonConfigListVO;
import com.dayouzi.crawler_monitor.pojo.vo.PersonListVO;
import com.dayouzi.crawler_monitor.pojo.vo.UserAdminVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author DaYouZi
 * @since 2023-03-06
 */
@Mapper
@Repository
public interface PersonMapper {


    List<PersonListVO> listPage(PersonListQuery personListQuery);

    ArrayList<String> getManagerList();

    List<PersonConfigListVO> configListPage(PersonConfigListQuery personConfigListQuery);

    ArrayList<String> getConfigManagerList();

    PersonConfigListVO getConfigById(Integer id);

    Boolean updateById(PersonConfigQuery personConfigQuery);

    Boolean addData(PersonConfigQuery personConfigQuery);

    int foreverRemove(Integer id);

    int foreverRemove2(Integer showId);

    ArrayList<String> getQueueStatusList();

    ArrayList<String> getRunStatusList();

    ArrayList<String> getLogStatusList();

    int updateRemarks(@Param("id") Integer id, @Param("remarks") String remarks);
}
